import Editor from '../editor';
import { Operation} from '../operations'
export class UndoTextOperation implements Operation {
    getSpacers(): string {
        return ''
    }
    setSpacers(spacers: string): void {
    }
    apply(editor: Editor) {
       const currentOperation = editor.undoModel.popStep()
       currentOperation?.reverse()?.forEach((operation: Operation) => {
        operation.reverse().apply(editor)
       })
    }
    reverse(): Operation {
        return '' as unknown as Operation
    }
}